Change the way that reboot-timeouts are handled. Rather than refreshing the
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 3 Mar 2006 14:41:56 +0000 (15:41 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 3 Mar 2006 14:41:56 +0000 (15:41 +0100)
commitecabde4c14663c3c26e29fcdba4276e9407b3915
tree83aab3d0d1cc83b8f91a4048fe3b31e0bbabfdc3
parentc84e1f2ac5d82000c7decf212d69230a008ae3ac
Change the way that reboot-timeouts are handled.  Rather than refreshing the
list of domains each time XendDomainInfo.refresh is called, and spawning
threads for each shutdown still in progress, we watch the control/shutdown
node and spawn just the one thread immediately.  When the daemon starts (say
after a crash) all domains are checked for entries in the store indicating a
reboot in progress.

This avoids a large cost on the store and in threads when the list of domains
is refreshed.  This happens every time the server is queried, so the cost can
be quite high.  It's especially a high cost when using xm shutdown -a -w --
this operation should perform a lot better now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py